<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtGraphicsScene Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_graphics_scene-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtGraphicsScene Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QQtGraphicsScene:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_qt_graphics_scene.png" usemap="#QQtGraphicsScene_map" alt=""/>
  <map id="QQtGraphicsScene_map" name="QQtGraphicsScene_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac6dbb4d22279ebb1baf31d1af4a96e10"><td class="memItemLeft" align="right" valign="top"><a id="ac6dbb4d22279ebb1baf31d1af4a96e10"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtGraphicsScene</b> (QObject *parent=0)</td></tr>
<tr class="separator:ac6dbb4d22279ebb1baf31d1af4a96e10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66f2f662ca9a88ede5acdaa914d5c501"><td class="memItemLeft" align="right" valign="top"><a id="a66f2f662ca9a88ede5acdaa914d5c501"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtGraphicsScene</b> (const QRectF &amp;sceneRect, QObject *parent=0)</td></tr>
<tr class="separator:a66f2f662ca9a88ede5acdaa914d5c501"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25dd1361d6eac97445e358f38328fc2f"><td class="memItemLeft" align="right" valign="top"><a id="a25dd1361d6eac97445e358f38328fc2f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtGraphicsScene</b> (qreal x, qreal y, qreal width, qreal height, QObject *parent=0)</td></tr>
<tr class="separator:a25dd1361d6eac97445e358f38328fc2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1744444e22949f5207050aaba010a0be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_qt_graphics_scene.html#a1744444e22949f5207050aaba010a0be">render</a> (QPainter *painter, const QRectF &amp;target=QRectF(), const QRectF &amp;source=QRectF(), Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio)</td></tr>
<tr class="memdesc:a1744444e22949f5207050aaba010a0be"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_q_qt_graphics_scene.html#a1744444e22949f5207050aaba010a0be" title="QQtGraphicsScene::render 经过测试，失真是由于render放缩QPainter和drawItems里面的itemPaint共同导致失真...">QQtGraphicsScene::render</a> 经过测试，失真是由于render放缩QPainter和drawItems里面的itemPaint共同导致失真 现在规整理如下，原则：Qpainter不允许改变 重写itemPaint函数  <a href="#a1744444e22949f5207050aaba010a0be">More...</a><br /></td></tr>
<tr class="separator:a1744444e22949f5207050aaba010a0be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad78214d619df10a6e87a0a0e675d4176"><td class="memItemLeft" align="right" valign="top"><a id="ad78214d619df10a6e87a0a0e675d4176"></a>
<a class="el" href="class_q_qt_graphics_ellipse_item.html">QQtGraphicsEllipseItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addEllipse</b> (const QRectF &amp;rect, const QPen &amp;pen=QPen(), const QBrush &amp;brush=QBrush())</td></tr>
<tr class="separator:ad78214d619df10a6e87a0a0e675d4176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526c77b62dc368714503296e8182f00b"><td class="memItemLeft" align="right" valign="top"><a id="a526c77b62dc368714503296e8182f00b"></a>
<a class="el" href="class_q_qt_graphics_ellipse_item.html">QQtGraphicsEllipseItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addEllipse</b> (qreal x, qreal y, qreal w, qreal h, const QPen &amp;pen=QPen(), const QBrush &amp;brush=QBrush())</td></tr>
<tr class="separator:a526c77b62dc368714503296e8182f00b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13e2c8a48bee8891f17fd77003aff382"><td class="memItemLeft" align="right" valign="top"><a id="a13e2c8a48bee8891f17fd77003aff382"></a>
<a class="el" href="class_q_qt_graphics_path_item.html">QQtGraphicsPathItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addPath</b> (const QPainterPath &amp;path, const QPen &amp;pen=QPen(), const QBrush &amp;brush=QBrush())</td></tr>
<tr class="separator:a13e2c8a48bee8891f17fd77003aff382"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66099c4edf2b588a2e570e3a17b6667d"><td class="memItemLeft" align="right" valign="top"><a id="a66099c4edf2b588a2e570e3a17b6667d"></a>
<a class="el" href="class_q_qt_graphics_pixmap_item.html">QQtGraphicsPixmapItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addPixmap</b> (const QPixmap &amp;pixmap)</td></tr>
<tr class="separator:a66099c4edf2b588a2e570e3a17b6667d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9461c068c9f8090196a1cceb4fc0105"><td class="memItemLeft" align="right" valign="top"><a id="ae9461c068c9f8090196a1cceb4fc0105"></a>
<a class="el" href="class_q_qt_graphics_polygon_item.html">QQtGraphicsPolygonItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addPolygon</b> (const QPolygonF &amp;polygon, const QPen &amp;pen=QPen(), const QBrush &amp;brush=QBrush())</td></tr>
<tr class="separator:ae9461c068c9f8090196a1cceb4fc0105"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40b9db781ce7aa26e345b44f04ac4e4c"><td class="memItemLeft" align="right" valign="top"><a id="a40b9db781ce7aa26e345b44f04ac4e4c"></a>
<a class="el" href="class_q_qt_graphics_text_item.html">QQtGraphicsTextItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addText</b> (const QString &amp;text, const QFont &amp;font=QFont())</td></tr>
<tr class="separator:a40b9db781ce7aa26e345b44f04ac4e4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a932b99b2c8bfae51ef5ee7db8287fb54"><td class="memItemLeft" align="right" valign="top"><a id="a932b99b2c8bfae51ef5ee7db8287fb54"></a>
<a class="el" href="class_q_qt_graphics_simple_text_item.html">QQtGraphicsSimpleTextItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addSimpleText</b> (const QString &amp;text, const QFont &amp;font=QFont())</td></tr>
<tr class="separator:a932b99b2c8bfae51ef5ee7db8287fb54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a033e4a92cda9223dc579b3001d96136f"><td class="memItemLeft" align="right" valign="top"><a id="a033e4a92cda9223dc579b3001d96136f"></a>
<a class="el" href="class_q_qt_graphics_proxy_widget.html">QQtGraphicsProxyWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addWidget</b> (QWidget *widget, Qt::WindowFlags wFlags=0)</td></tr>
<tr class="separator:a033e4a92cda9223dc579b3001d96136f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a388011e60e26230e0892b64c7b704eef"><td class="memItemLeft" align="right" valign="top"><a id="a388011e60e26230e0892b64c7b704eef"></a>
<a class="el" href="class_q_qt_graphics_line_item.html">QQtGraphicsLineItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addLine</b> (const QLineF &amp;line, const QPen &amp;pen=QPen())</td></tr>
<tr class="separator:a388011e60e26230e0892b64c7b704eef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d7b4d57f1b4c1437f686039962fc720"><td class="memItemLeft" align="right" valign="top"><a id="a5d7b4d57f1b4c1437f686039962fc720"></a>
<a class="el" href="class_q_qt_graphics_line_item.html">QQtGraphicsLineItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addLine</b> (qreal x1, qreal y1, qreal x2, qreal y2, const QPen &amp;pen=QPen())</td></tr>
<tr class="separator:a5d7b4d57f1b4c1437f686039962fc720"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5265501a7d19c1867b62e981b5e74080"><td class="memItemLeft" align="right" valign="top"><a id="a5265501a7d19c1867b62e981b5e74080"></a>
<a class="el" href="class_q_qt_graphics_rect_item.html">QQtGraphicsRectItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addRect</b> (const QRectF &amp;rect, const QPen &amp;pen=QPen(), const QBrush &amp;brush=QBrush())</td></tr>
<tr class="separator:a5265501a7d19c1867b62e981b5e74080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb8aa189a1840cbc4d5b0b60b066aa8f"><td class="memItemLeft" align="right" valign="top"><a id="aeb8aa189a1840cbc4d5b0b60b066aa8f"></a>
<a class="el" href="class_q_qt_graphics_rect_item.html">QQtGraphicsRectItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>addRect</b> (qreal x, qreal y, qreal w, qreal h, const QPen &amp;pen=QPen(), const QBrush &amp;brush=QBrush())</td></tr>
<tr class="separator:aeb8aa189a1840cbc4d5b0b60b066aa8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a45d2b01a24d559284034cca2d47877a1"><td class="memItemLeft" align="right" valign="top"><a id="a45d2b01a24d559284034cca2d47877a1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>drawItems</b> (QPainter *painter, int numItems, QGraphicsItem *items[], const QStyleOptionGraphicsItem options[], QWidget *widget=0)</td></tr>
<tr class="separator:a45d2b01a24d559284034cca2d47877a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1744444e22949f5207050aaba010a0be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1744444e22949f5207050aaba010a0be">&#9670;&nbsp;</a></span>render()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QQtGraphicsScene::render </td>
          <td>(</td>
          <td class="paramtype">QPainter *&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>target</em> = <code>QRectF()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>source</em> = <code>QRectF()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Qt::AspectRatioMode&#160;</td>
          <td class="paramname"><em>aspectRatioMode</em> = <code>Qt::KeepAspectRatio</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="class_q_qt_graphics_scene.html#a1744444e22949f5207050aaba010a0be" title="QQtGraphicsScene::render 经过测试，失真是由于render放缩QPainter和drawItems里面的itemPaint共同导致失真...">QQtGraphicsScene::render</a> 经过测试，失真是由于render放缩QPainter和drawItems里面的itemPaint共同导致失真 现在规整理如下，原则：Qpainter不允许改变 重写itemPaint函数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">painter</td><td></td></tr>
    <tr><td class="paramname">target</td><td></td></tr>
    <tr><td class="paramname">source</td><td></td></tr>
    <tr><td class="paramname">aspectRatioMode</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/widgets/<a class="el" href="qqtgraphicsscene_8h_source.html">qqtgraphicsscene.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/widgets/qqtgraphicsscene.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
